﻿@using Ext.Net
@using Ext.Net.MVC
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/extjs-utils.js")" type="text/javascript"></script>
    <script src="../../ckeditor/ckeditor.js" type="text/javascript"></script>
    <script src="../../ckfinder/ckfinder.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    @RenderSection("Header", false)
</head>
    <body>
        <div class="page" style="padding: 1px">
            @Html.X().ResourceManager().Theme(Theme.Gray)
            <div runat="server" id="ToolbarContainer" class="noprint">
                @Html.X().Toolbar().StyleSpec("position: fixed; z-index: 10;width: 100%;").Items(
                    Html.X().ToolbarTextItem().Text("<b style='color:darkgreen'>Đinh Đức Tân - Đồ án tốt nghiệp - ext.net mvc 3</b>"),
                    Html.X().ToolbarFill(),
                    Html.X().Button().Text("Reload").Icon(Icon.ArrowRefresh).Listeners(ls => ls.Click.Handler = "window.location.reload();"),
                    Html.X().Button().Text("Expand").Icon(Icon.TabGo).Listeners(ls => ls.Click.Handler = "window.open(window.location.href);")    
                     )
                <div style="width: 100%; height: 20px">
                </div>
            </div>
        </div>
        <div style="padding: 10px;margin:10px auto;width: 960px;background-color: #F0F0F0;border:brown solid 1px;border-radius: 5px;">
            <legend>@ViewBag.Title</legend>
            <hr/>
            <section id="main">
                @RenderBody()
            </section>
        </div>
    </body>
</html>
